import Request from '@/api/Request'

const base = '/appUser'

export const AppUserApi = {
  login: (data) => Request.post(`${base}/login`, data),
  register: (data) => Request.post(`${base}/register`, data),
  add: (data) => Request.post(`${base}/add`, data),
  edit: (data) => Request.post(`${base}/edit`, data),
  delete: (data) => Request.post(`${base}/delete`, data),
  detail: (params) => Request.get(`${base}/detail`, params),
  page: (params) => Request.get(`${base}/page`, params),
}